@model OrchardCore.ContentFields.ViewModels.EditBooleanFieldViewModel
@using OrchardCore
@using OrchardCore.ContentFields.Settings
@using OrchardCore.ContentManagement.Metadata.Models

@{
    var settings = Model.PartFieldDefinition.GetSettings<BooleanFieldSettings>();
}

<div class="@Orchard.GetFieldWrapperClasses(Model.PartFieldDefinition)" id="@Html.IdFor(x => x.Value)_FieldWrapper">
    <div class="@Orchard.GetEndClasses(true)">
        <div>
            <label class="form-check-label">
                @(string.IsNullOrEmpty(settings.Label) ? Model.PartFieldDefinition.DisplayName() : settings.Label)
            </label>
        </div>
        <div>
            <input hidden asp-for="Value"/>
            <strong>@Model.Value</strong>
        </div>
        @if (!string.IsNullOrEmpty(settings.Hint))
        {
            <div>
                <span class="hint">@settings.Hint</span>
            </div>
        }
    </div>
</div>
